package main

import (
  "log"
  "net/http"
  "xszGame/service/client"
)

func main() {
  http.HandleFunc("/ws", client.WebSocketHandler)

  log.Println("服务启动: http://localhost:8080")
  err := http.ListenAndServe(":8080", nil)
  if err != nil {
    log.Fatal("启动失败:", err)
  }
}
